while True:
    try:
        n = int(input())
        x = 1
        for i in range(n-1):
            x = (x+1)*2
        print(x)
    except:
        break
